<template>
	<uni-forms-item v-if="formData.type === 'upImage'" label="最大上传个数" name="maxLength">
		<uni-easyinput type="number" v-model="formData.maxLength" :disabled="disabled" :cursorSpacing="20" />
	</uni-forms-item>
	<uni-forms-item v-if="formData.type === 'upImage'" label="图片大小上限" name="maxSize">
		<uni-easyinput type="number" v-model="formData.maxSize" :disabled="disabled" :cursorSpacing="20" />
	</uni-forms-item>
</template>

<script setup>
	import {
		ref
	} from 'vue'
	const props = defineProps({
		disabled: Boolean
	})
	const formData = defineModel()
</script>